﻿using System;
using Business;
namespace ServicesDirectory.UserControl
{
    /// <summary>
    /// 
    /// </summary>
    public partial class ServiceContract : System.Web.UI.UserControl
    {

        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// Loads the reference data.
        /// </summary>
        public void LoadReferenceData()
        {
            ddlParticipation.DataSource = ServiceBusiness.Instance.GetOtherServiceParticipationCriterion();
            ddlParticipation.DataTextField = "DataRef";
            ddlParticipation.DataValueField = "RefValue";
            ddlParticipation.DataBind();

            cklContractOutcome.DataSource = ServiceBusiness.Instance.GetContractOutcome();
            cklContractOutcome.DataTextField = "DataRef";
            cklContractOutcome.DataValueField = "RefValue";
            cklContractOutcome.DataBind();

            cklObligation.DataSource = ServiceBusiness.Instance.GetContractObligation();
            cklObligation.DataTextField = "DataRef";
            cklObligation.DataValueField = "RefValue";
            cklObligation.DataBind();


        }



    }
}